package BUS.VANHIEP;

import java.util.List;

import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
/*import javax.faces.bean.ManagedProperty;*/

import DAO.HibernateDAO;
import POJO.Notice;

@ManagedBean (name="NoticeBean")
@ApplicationScoped
public class NoticeParser extends HibernateDAO {
	/*@ManagedProperty (value="NoticeBean.ListNotice")*/
	private List<Notice> listNotice;
	
	@SuppressWarnings("unchecked")
	public  List<Notice> getListNotice() {
		listNotice = HibernateDAO.getList("from Notice", "MALL_VN");
		return listNotice;
	}
	
}
